<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('添加跟进记录')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-customer-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">跟进时间：</label>
            <div class="col-sm-8">
                <input name="followUpTime" class="form-control" type="date">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">跟进内容：</label>
            <div class="col-sm-8">
                <input name="chatInformation" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var id = [[${id}]];
    var prefix = ctx + "business/record";
    $("#form-customer-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            var data = $('#form-customer-add').serializeArray();
            data.push({"name":"id","value":id});
            $.operate.save(prefix + "/add",data);
        }
    }
</script>
</body>
</html>